﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace FinancialManagement.Models
{
    /// <summary>
    /// 预算申报
    /// </summary>
    public class BudgetApplyTable
    {
        [ScaffoldColumn(false)]
        [Display(Name = "申报编码")]
        public int ApplyID { get; set; }

        [ScaffoldColumn(false)]
        [Display(Name = "申报单位编号")]
        public string ApplyDepartment { get; set; }

        [ScaffoldColumn(false)]
        [Display(Name = "申报单位名称")]
        public string ApplyDepartmentName { get; set; }

        [ScaffoldColumn(false)]
        [Display(Name = "收入类别编码")]
        public string RevenueTypeCode { get; set; }
        
        [Display(Name = "收入类别名称")]
        public string RevenueTypeName { get; set; }

        [StringLength(150, ErrorMessage = "{0}不能超过{1}字符。" )]
        [Display(Name = "收费项目名称")]
        public string ChargeProjectName { get; set; }

        [ScaffoldColumn(false)]
        [Display(Name = "计费单位编码")]
        public string CalculateUnitCode { get; set; }
        
        [Display(Name = "计费单位名称")]
        public string CalculateUnitName { get; set; }
        
        [Display(Name = "收费标准")]
        public double ChargeStandard { get; set; }

        [ScaffoldColumn(false)]
        [Display(Name = "收费范围编码")]
        public string ChargeScopeCode { get; set; }
        
        [Display(Name = "收费范围名称")]
        public string ChargeScopeName { get; set; }
        
        [Display(Name = "年度")]
        public int Annual { get; set; }
        
        [Display(Name = "预算总收入")]
        public double BudgetTotalRreven { get; set; }
        
        [Display(Name = "实际总收入")]
        public double ActualTotalRreven { get; set; }

        [StringLength(200, ErrorMessage = "{0}不能超过{1}字符。")]
        [Display(Name = "测算依据")]
        public string BudgetAccding { get; set; }

        [StringLength(2000, ErrorMessage = "{0}不能超过{1}字符。")]
        [Display(Name = "说明")]
        public string Illustration { get; set; }

        [StringLength(200, ErrorMessage = "{0}不能超过{1}字符。")]
        [Display(Name = "备注")]
        public string Notes { get; set; }

        public bool RevenueType { get; set; }
    }
}